package net.cardgame.orcalecard.bean;

import java.util.ArrayList;
import java.util.List;

public class SettingApp {
	public final static int SORT_BY_RELEASE = 1;
	public final static int SORT_BY_BUY = 2;
	public final static int SORT_BY_USED = 3;
	// setting co jumpcard trong khi rut hay khong(true: co jumpcard)
	public boolean jumCard;
	// setting adviseCard co them cay thu 4 trong truong hop rut 3 cay
	public boolean adviseCard;
	// Bat hieu ung am thanh doi voi app
	public boolean sound;
	// chuc nang sort cac bo bai trong man hinh top page( 1:release, 2: theo thu
	// tu mua, 3: theo thu tu su dung gan nhat)
	public int sortToppage;

	/**
	 * 
	 */
	public SettingApp() {
	}

	// setting special deck cho tung bo bai (mang int[] chua id cac bo bai)
	public List<Integer> listSpecial;
	// setting chuc nang restore cho app
	public boolean restore;

	/**
	 * @param jumCard
	 * @param adviseCard
	 * @param sound
	 * @param sortToppage
	 * @param listSpecial
	 * @param restore
	 */
	public SettingApp(boolean jumCard, boolean adviseCard, boolean sound,
			int sortToppage, ArrayList<Integer> listSpecial, boolean restore) {
		super();
		this.jumCard = jumCard;
		this.adviseCard = adviseCard;
		this.sound = sound;
		this.sortToppage = sortToppage;
		this.listSpecial = listSpecial;
		this.restore = restore;
	}

	/**
	 * Load default setting for app
	 */
	public void setDefault() {
		this.jumCard = false;
		this.adviseCard = false;
		this.sound = true;
		this.restore = false;
		this.listSpecial = new ArrayList<Integer>();
		this.sortToppage = 1;
	}

}
